package cn.kgc.service.imp;

import cn.kgc.dao.AppDao;
import cn.kgc.service.AppService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Map;


@Service
public class AppServiceImpl implements AppService {


    @Resource
    private AppDao appDao;



    /**
     * 审核判断
     * @param aid
     * @param vid
     * @return
     */
    @Override
    public Map<String, Object> findCheckApp(Integer aid, Integer vid) {
        return appDao.findCheckApp(aid,vid);
    }

    /**
     * 审核列表版本信息
     * @param vid
     * @return
     */
    @Override
    public Map<String, Object> findCheckAppVid(Integer vid) {
        return appDao.findCheckAppVid(vid);
    }

    /**
     * 修改审核状态
     * @param id
     * @param status
     * @return
     */
    @Override
    public int updataApp(Integer id, Integer status) {
        return appDao.updataApp(id,status);
    }
}
